package com.ruoyi.project.interface_log.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.interface_log.mapper.InterfaceLogMapper;
import com.ruoyi.project.interface_log.domain.InterfaceLog;
import com.ruoyi.project.interface_log.service.IInterfaceLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 日志表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-22
 */
@Service
public class InterfaceLogServiceImpl implements IInterfaceLogService 
{
    @Autowired
    private InterfaceLogMapper interfaceLogMapper;

    /**
     * 查询日志表
     * 
     * @param id 日志表主键
     * @return 日志表
     */
    @Override
    public InterfaceLog selectInterfaceLogById(String id)
    {
        return interfaceLogMapper.selectInterfaceLogById(id);
    }

    /**
     * 查询日志表列表
     * 
     * @param interfaceLog 日志表
     * @return 日志表
     */
    @Override
    public List<InterfaceLog> selectInterfaceLogList(InterfaceLog interfaceLog)
    {
        return interfaceLogMapper.selectInterfaceLogList(interfaceLog);
    }

    /**
     * 新增日志表
     * 
     * @param interfaceLog 日志表
     * @return 结果
     */
    @Override
    public int insertInterfaceLog(InterfaceLog interfaceLog)
    {
        return interfaceLogMapper.insertInterfaceLog(interfaceLog);
    }

    /**
     * 修改日志表
     * 
     * @param interfaceLog 日志表
     * @return 结果
     */
    @Override
    public int updateInterfaceLog(InterfaceLog interfaceLog)
    {
        return interfaceLogMapper.updateInterfaceLog(interfaceLog);
    }

    /**
     * 批量删除日志表
     * 
     * @param ids 需要删除的日志表主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceLogByIds(String ids)
    {
        return interfaceLogMapper.deleteInterfaceLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除日志表信息
     * 
     * @param id 日志表主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceLogById(String id)
    {
        return interfaceLogMapper.deleteInterfaceLogById(id);
    }
}
